package com.ncpowernode.javaweb.bean;

public class Book {

    private Long id;
    private String bookName;
    private String author;
    private String appraise;
    private Double price;

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", appraise='" + appraise + '\'' +
                ", price=" + price +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAppraise() {
        return appraise;
    }

    public void setAppraise(String appraise) {
        this.appraise = appraise;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Book(Long id, String bookName, String author, String appraise, Double price) {
        this.id = id;
        this.bookName = bookName;
        this.author = author;
        this.appraise = appraise;
        this.price = price;
    }

    public Book() {
    }
}
